Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 10 - AppleTalk Addressing / AppleTalk Addressing Reference
Functions


OTCompareDDPAddresses

Compares two DDP address structures.

C INTERFACE
Boolean OTCompareDDPAddresses (const DDPAddress* addr1, 
                               const DDPAddress* addr2);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
addr1
A pointer to one of the DDP address structures you wish
to compare.
addr2
A pointer to the second DDP address structure you wish
to compare.
DESCRIPTION
The OTCompareDDPAddresses function compares two DDP addresses for equality and returns true if the two addresses match. It cannot compare NBP or combined DDP-NBP addresses; using these address types always returns false. This function uses the zero-matches-anything AppleTalk rule when doing the matching, which means that a value of 0 in any field results in an acceptable match.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996